// samsting : this file is auto create.

#include "Rds/2014-08-15/DescribeOptimizeAdviceByDBAResponse.h"

namespace aliyun { namespace Rds {

DescribeOptimizeAdviceByDBAResponse::DescribeOptimizeAdviceByDBAResponse() {
}

const string& DescribeOptimizeAdviceByDBAResponse::AdviceByDBA::GetOptimizationText(void) const {
  return OptimizationText_;
}

const std::vector<DescribeOptimizeAdviceByDBAResponse::AdviceByDBA>& DescribeOptimizeAdviceByDBAResponse::GetItems(void) const {
  return Items_;
}

int DescribeOptimizeAdviceByDBAResponse::GetTotalRecordsCount(void) const {
  return TotalRecordsCount_;
}

int DescribeOptimizeAdviceByDBAResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeOptimizeAdviceByDBAResponse::GetPageRecordCount(void) const {
  return PageRecordCount_;
}

const char* DescribeOptimizeAdviceByDBAResponse::BaseKey(void) {
  return "DescribeOptimizeAdviceByDBAResponse";
}

void DescribeOptimizeAdviceByDBAResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Items__length = 0;
  UnmarshallerInt(Items__length, response_map, "DescribeOptimizeAdviceByDBAResponse.Items.Length");
  if(Items__length >= 0) {
    Items_.resize(Items__length);
    for(int i1 = 0; i1 < Items__length; i1++) {
      UnmarshallerString(Items_[i1].OptimizationText_, response_map, "DescribeOptimizeAdviceByDBAResponse.Items["+string_ValueOfInt(i1)+"].OptimizationText");
    } // for(int i1 = 0; i1 < Items__length; i1++) {
  } // if(Items__length >= 0) {

  UnmarshallerInt(TotalRecordsCount_, response_map, "DescribeOptimizeAdviceByDBAResponse.TotalRecordsCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeOptimizeAdviceByDBAResponse.PageNumber");
  UnmarshallerInt(PageRecordCount_, response_map, "DescribeOptimizeAdviceByDBAResponse.PageRecordCount");
}


} } // namespace aliyun { namespace Rds {

// end of file 
